package cn.schoolwow.ams.domain.block.common.operation;

import cn.schoolwow.ams.domain.block.common.BlockOperation;
import cn.schoolwow.ams.domain.block.common.BlockOperationType;

import java.util.List;

public class OpenFieldTabBlockOperation extends BlockOperation {
    /**
     * 展示字段列表
     * */
    public List<String> fieldNames;

    public OpenFieldTabBlockOperation(String label, List<String> fieldNames) {
        this.blockOperationType = BlockOperationType.OpenFieldTab;
        this.label = label;
        if(null==fieldNames||fieldNames.isEmpty()){
            throw new IllegalArgumentException("字段不能为空");
        }
        this.fieldNames = fieldNames;
    }
}
